﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Hospitals/Master/HospitalsMaster.Master"
    AutoEventWireup="true" CodeBehind="InvoiceList.aspx.cs" Inherits="HZ.DrugTrade.Web.Hospitals.Collection.InvoiceList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="maincon">
        <div class="note">
            结算单明细
        </div>
        <div class="note2">
        </div>
        <table>
            <tr style="display: none;">
                <th>结算单编号：
                </th>
                <td>
                    <asp:Label runat="server" ID="lblPayId"></asp:Label>
                </td>
                <th>结算单名称：
                </th>
                <td>
                    <asp:Label runat="server" ID="lblPayNames"></asp:Label>
                </td>
            </tr>
            <tr>
                <th>结算单名称：
                </th>
                <td>
                    <asp:Label runat="server" ID="lblPayName"></asp:Label>
                </td>
                <th></th>
                <td></td>
            </tr>
            <tr>
                <th>应付金额：
                </th>
                <td>
                    <asp:Label runat="server" ID="lblPayAmount"></asp:Label>
                </td>
                <th>实付金额：
                </th>
                <td>
                    <asp:Label runat="server" ID="lblActualAmount"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    <br />
    <asp:GridView ID="gvwRefundDetail" class="mainlist" runat="server" AutoGenerateColumns="False"
        OnRowDataBound="gvwRefundDetail_RowDataBound" EmptyDataText="暂无符合条件的数据！">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %>
                </ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <%-- <asp:TemplateField HeaderText="发票号">
                <ItemTemplate>
                    <a href='InvoiceDetail.aspx?isID=<%# Eval("InvoiceID") %>'>
                        <asp:Label runat="server" ID="lblInvoiceID" Text='<%# HttpUtility.HtmlEncode(Eval("InvoiceID").ToString()) %>'></asp:Label></a>
                </ItemTemplate>
            </asp:TemplateField>--%>
            <asp:TemplateField HeaderText="发票号">
                <ItemTemplate>
                    <a href='InvoiceDetail.aspx?InvoiceSerialID=<%# Eval("InvoiceSerialID")%>&Hospitalid=<%# Eval("Hospitalid") %>'>
                        <asp:Label runat="server" ID="lblInvoiceID" Text='<%# HttpUtility.HtmlEncode(Eval("InvoiceID").ToString()) %>'></asp:Label></a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="InvoiceTime" HeaderText="发票时间" ReadOnly="true" DataFormatString="{0:yyyy-MM-dd}" />
            <%--<asp:BoundField DataField="TotalAmount" HeaderText="发票总额" ReadOnly="true" DataFormatString="{0:F2}" />--%>
            <asp:BoundField DataField="TotalAmount" HeaderText="发票总额" ReadOnly="true" DataFormatString="{0:F2}" />
            <asp:TemplateField HeaderText="状态" Visible="false">
                <ItemTemplate>
                    <asp:Literal ID="ltrStatus" runat="server" Text='<%# Eval("PayStatus") %>'></asp:Literal>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listip">
        <ul>
            <li>提示:<span>可以通过发票号进入查看该发票的详细信息。</span></li>
        </ul>
    </div>
    <div class="listctrl">
        <input id="btnBack" runat="server" type="button" value="返回" onclick="javascript: history.go(-1)"
            class="btn" />
    </div>
</asp:Content>
